$def with (change)

<div id="contentHead">
    $:render_template("recentchanges/header", change, label=_("Author Merge"))
</div>

$ master = change.get_master()

<div id="contentBody">
    $if change.get_undo_changeset():
        <p class="alert">
            $_('This merge has been undone.')
            <a href="$change.get_undo_changeset().url()">$_('Details here')</a>
        </p>

    <div id="mergeHead" class="sansserif">
        <div class="smallest lightgreen">$_('Master')</div>

        <div id="recordMaster">
            <span id="recordMasterTitle" class="larger">
                <strong><a href="$master.key">$master.name</a></strong>
            </span>
            <span id="recordMasterDate" class="smaller">
                $if master.birth_date or master.death_date:
                    $ birth = master.birth_date or ''
                    $ death = master.death_date or ''
                    ($(' - '.join([birth, death])))
            </span>

        </div>

        <div class="smallest lightgreen">$_('Duplicates')</div>
        <div id="recordDuplicates">
            <p class="small collapse">
                $for dup in change.get_duplicates():
                    $dup.name;
            </p>
        </div>

        <p class="smallest gray sansserif">
            $ungettext("1 record modified.", "%(count)d records modified.", len(change.changes), count=len(change.changes))
        </p>
    </div>

    <h3>$_('Updated Records')</h3>
    $:render_template("recentchanges/updated_records", change)
</div>
